<template>
  <div id="app">
    <router-view :key="route.fullPath"></router-view>
    <!-- <Home></Home> -->
    <!-- <Login /> -->
  </div>
</template>


<script lang="ts">
import { defineComponent } from 'vue'
import Home from '@/views/Home.vue'
import Login from '@/views/wang/Login.vue'
import { useRouter ,useRoute} from 'vue-router';
export default defineComponent({
  name: 'App',
  components: {
    Home,
    Login

  },
  setup() {

    const router = useRouter()
    const route = useRoute()
    return{
      route
    }
  },
})
</script>

<style lang="less">
#app {
  height: 100%;
}

html {
  height: 100%;
}

body,
#app {
  height: 100%;
}
</style>
